﻿using Hotel_Project.BIZ;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Hotel_Project.HotelForm
{
    public partial class Vip_Maintenance_Jjh : Form
    {
        public Vip_Maintenance_Jjh()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            new Updata_Vip_jjh(Convert.ToInt32(VIP_DataGrid.CurrentRow.Cells[0].Value.ToString()),this).Show();
        }

        private void Vip_Maintenance_Jjh_Load(object sender, EventArgs e)
        {
            new Vip_Maintenance_Jjh_BIZ().Initialize(VIP_DataGrid);
            comboBox1.SelectedIndex = 2;
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            new Vip_Maintenance_Jjh_BIZ().Initialize_Date(VIP_DataGrid,comboBox1.SelectedItem.ToString());
        }
    }
}
